package org.jetlinks.pro.assets.impl;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

@Getter
@Setter
@ConfigurationProperties(prefix = "jetlinks.assets")
public class DimensionAssetsProperties {

    /**
     * 设置开启资产数据权限控制的维度
     *
     * @see org.hswebframework.web.authorization.Dimension
     * @since 1.11
     */
    private Set<String> enabledDimensions;

    /**
     * 是否自动绑定资产到维度中,在用户进行新增,保存操作时.
     */
    private boolean autoBinding = true;

    /**
     * 忽略不进行维度资产控制的资产类型
     */
    private Set<String> dimensionExcludeAssetTypes =new HashSet<>();

    /**
     * 其他设置
     */
    private Map<String, Object> settings = new HashMap<>();
}
